package com.ruoyi.web.controller.system;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.Meter;
import com.ruoyi.system.domain.MeterRecord;
import com.ruoyi.system.domain.vo.MeterVO;
import com.ruoyi.system.service.IMeterRecordService;
import com.ruoyi.system.service.IMeterService;
import com.ruoyi.system.service.ISysConfigService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 电Controller
 *
 * @author ruoyi
 * @date 2021-10-28
 */
@RestController
@RequestMapping("/system/smqtt")
public class MeterController extends BaseController
{
    
	@PostMapping("add")
    public AjaxResult add( @RequestBody JSONObject jsonObject)
    {
		
		System.err.println(jsonObject.toJSONString());
        return AjaxResult.success();
    }
}
